
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --base-size: 1vw;
    --primary-gradient: linear-gradient(135deg, #6e45e2, #88d3ce);
    --secondary-gradient: linear-gradient(135deg, #a777e3, #6e8efb);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --animation-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --spring-timing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    :root {
        --base-size: 1.2vw;
    }
}

@media (max-width: 480px) {
    :root {
        --base-size: 1.5vw;
    }
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    background: var(--primary-gradient);
    user-select: none;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/background.jpg') center/cover no-repeat;
    z-index: -2;
    animation: backgroundAnimation 4s ease-in-out forwards;
}

.glass-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    z-index: -1;
    opacity: 0.7;
}

.content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: contentAppear 1.5s var(--spring-timing) 0.5s forwards;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: logoAppear 1.2s var(--spring-timing) 0.8s forwards;
}

.logo {
    font-size: clamp(2.5rem, 2.5rem + 2vw, 4rem);
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #e2e2e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.subtitle {
    font-size: clamp(0.9rem, 0.9rem + 0.3vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.8;
}

.welcome-text {
    font-size: clamp(1.8rem, 1.8rem + 2vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 300;
    transform: scale(1.2) translateY(-30px);
    filter: blur(5px);
    opacity: 0;
    animation: titleSpring 1.5s var(--spring-timing) 1s forwards;
    will-change: transform, filter, opacity;
}

.enter-btn {
    position: relative;
    padding: clamp(15px, 15px + 1vw, 22px) clamp(35px, 35px + 2vw, 55px);
    font-size: clamp(1.1rem, 1.1rem + 0.5vw, 1.6rem);
    font-weight: 500;
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    color: white;
    border-radius: 50px;
    cursor: not-allowed;
    transition: all 0.4s var(--spring-timing);
    min-width: 220px;
    max-width: 90%;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    will-change: transform, opacity;
    transform: scale(0.0);
}

.enter-btn.enabled {
    background: var(--glass-bg);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #1A237E;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: backgroundAnimation 1.5s ease-in-out forwards;
    font-size: clamp(1.4rem, 1.4rem + 0.8vw, 2.0rem);
}

.enter-btn.enabled:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.enter-btn.enabled:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.enter-btn.enabled:hover .btn-glow {
    left: 100%;
}

/* 假按钮样式 */
.fake-btn {
    position: fixed;
    padding: clamp(12px, 12px + 0.8vw, 18px) clamp(28px, 28px + 1.5vw, 45px);
    font-size: clamp(1rem, 1rem + 0.4vw, 1.4rem);
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    cursor: not-allowed;
    opacity: 1.0;
    pointer-events: none;
    z-index: 5;
    transform-origin: center;
    white-space: nowrap;
    transform: scale(0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* 加载进度指示器 */
.progress-container {
    position: relative;
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    margin: 0 auto 2.5rem;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressGlow 2s infinite;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.content.show-progress .progress-container {
    opacity: 1;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 15s infinite linear;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 脉动动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes progressGlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes contentAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleSpring {
    0% {
        transform: scale(1.2) translateY(-30px);
        filter: blur(5px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes btnAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s var(--spring-timing);
}

/* 媒体查询 - 移动端适配 */
@media (max-width: 768px) {
    .logo {
        font-size: clamp(2rem, 2rem + 2vw, 3rem);
        margin-bottom: 8px;
    }

    .welcome-text {
        font-size: clamp(1.5rem, 1.5rem + 2vw, 2.5rem);
        margin-bottom: 2rem;
    }

    .enter-btn,
    .fake-btn {
        padding: 14px 32px;
        font-size: 1.2rem;
    }

    .progress-container {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.8rem, 1.8rem + 2vw, 2.5rem);
        margin-bottom: 5px;
    }

    .welcome-text {
        font-size: clamp(1.3rem, 1.3rem + 2vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .enter-btn,
    .fake-btn {
        padding: 12px 28px;
        font-size: 1.1rem;
        min-width: 200px;
    }

    .progress-container {
        width: 95%;
    }
}

@keyframes backgroundAnimation {
    0% {
        width: 200%;
        filter: blur(15px);
    }

    65% {
        width: 100%;
        filter: blur(0px);
    }

    100% {
        width: 115%;
        filter: blur(0px) brightness(0.9) contrast(1.0);
    }
}